package com.stary.code.springboot.config;

import com.stary.code.springboot.rules.Constants;

/**
 * logback配置类
 * @author stary
 * @date 2018年7月3日 上午9:12:21
 */
public class LogBackConfig {
	/**
	 * 输出文件名
	 */
	private String fileName;
	/**
	 * 输出文件路径
	 */
	private String filePath="${catalina.home}/logs";
	/**
	 * 输出格式
	 */
	private String outFormat="%d{yyyy-MM-dd HH:mm:ss.SSS} %p %-4relative --- [%t] %c:%line  ✈✈✈      %m%n";
	
	/**
	 * 每产生一个日志文件，该日志文件的保存期限，单位天 ， 默认15
	 */
	private int maxHistory=15;
	/**
	 * 日志文件的大小，默认值是10MB
	 */
	private String maxFileSize="10MB";
	/**
	 * 设置字符集
	 */
	private String charset=Constants.UTF8;
	public String getFileName() {
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	public String getFilePath() {
		return filePath;
	}
	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}
	public String getOutFormat() {
		return outFormat;
	}
	public void setOutFormat(String outFormat) {
		this.outFormat = outFormat;
	}
	public int getMaxHistory() {
		return maxHistory;
	}
	public void setMaxHistory(int maxHistory) {
		this.maxHistory = maxHistory;
	}
	public String getMaxFileSize() {
		return maxFileSize;
	}
	public void setMaxFileSize(String maxFileSize) {
		this.maxFileSize = maxFileSize;
	}
	public String getCharset() {
		return charset;
	}
	public void setCharset(String charset) {
		this.charset = charset;
	}
	
	
}
